package cn.fresh.xuanyuan.framework.pay.core.client.impl.toutiao;

import cn.fresh.xuanyuan.framework.common.util.validation.ValidationUtils;
import cn.fresh.xuanyuan.framework.pay.core.client.PayClientConfig;
import lombok.Data;

import javax.validation.Validator;

@Data
public class TouTiaoPayClientConfig implements PayClientConfig {

    private final static String defaultSignType = "SHA256withRSA";

    private String keyVersion;

    private String appId;

    private String privateKey;

    private String signType;

    private String payApiUrl;

    private String notifyUrl;

    private String refundNotifyUrl;

    private String salt;

    private String queryOrderUrl;

    private String refundApiUrl;

    private String queryRefundOrderUrl;

    private String payToken;

    @Override
    public void validate(Validator validator) {

        ValidationUtils.validate(validator, this, SHA256RSA2048.class);
    }

    public interface SHA256RSA2048 {}
}
